﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ThreeTeams.Domain
{
    /// <summary>
    /// 箱子型号实体
    /// </summary>
    public class BoxType
    {
        [Key]
        public int Id { get; set; }

        /// <summary>
        /// 型号名称
        /// </summary>
        [Required]
        [StringLength(100)]
        public string Name { get; set; } = string.Empty;

        /// <summary>
        /// 长度(厘米)
        /// </summary>
        [Required]
        public decimal Length { get; set; }

        /// <summary>
        /// 宽度(厘米)
        /// </summary>
        [Required]
        public decimal Width { get; set; }

        /// <summary>
        /// 高度(厘米)
        /// </summary>
        [Required]
        public decimal Height { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [StringLength(500)]
        public string? Notes { get; set; }

        /// <summary>
        /// 状态 1-启用 0-禁用
        /// </summary>
        public int Status { get; set; } = 1;

    }
}
